.class public Lcom/waiqin365/lightapp/dailyreport/view/br;
.super Landroid/text/style/ClickableSpan;


# instance fields
.field private a:Ljava/lang/String;

.field private b:Landroid/content/Context;

.field private c:Ljava/lang/String;

.field private d:Ljava/lang/String;

.field private e:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 1

    invoke-direct {p0}, Landroid/text/style/ClickableSpan;-><init>()V

    const/4 v0, -0x1

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->e:I

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->a:Ljava/lang/String;

    iput-object p3, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->c:Ljava/lang/String;

    iput p5, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->e:I

    iput-object p4, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->d:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 9

    const/16 v8, 0x32

    const v7, 0x7f040022

    const v6, 0x7f040021

    const/4 v5, 0x0

    const/4 v4, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->a:Ljava/lang/String;

    const-string/jumbo v1, "http://special:"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->a:Ljava/lang/String;

    const-string/jumbo v1, "http://special:"

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->a:Ljava/lang/String;

    const/16 v3, 0x5f

    invoke-virtual {v2, v3}, Ljava/lang/String;->indexOf(I)I

    move-result v2

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->a:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->a:Ljava/lang/String;

    const/16 v3, 0x5f

    invoke-virtual {v2, v3}, Ljava/lang/String;->indexOf(I)I

    move-result v2

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v2, "1"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    const-class v3, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "isFromPush"

    invoke-virtual {v1, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v2, "visitId"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "editable"

    invoke-virtual {v1, v0, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "canViewCM"

    invoke-virtual {v1, v0, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "showComment"

    invoke-virtual {v1, v0, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "comment_id"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->d:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "position"

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->e:I

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v0, "canViewAll"

    invoke-virtual {v1, v0, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v1, v8}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    instance-of v0, v0, Landroid/app/Activity;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v7, v6}, Landroid/app/Activity;->overridePendingTransition(II)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    const-string/jumbo v2, "2"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    const-class v3, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordDetailActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "isFromPush"

    invoke-virtual {v1, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v2, "visitId"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "editable"

    invoke-virtual {v1, v0, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "canViewCM"

    invoke-virtual {v1, v0, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "showComment"

    invoke-virtual {v1, v0, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "comment_id"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->d:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "canViewAll"

    invoke-virtual {v1, v0, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v1, v8}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    instance-of v0, v0, Landroid/app/Activity;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v7, v6}, Landroid/app/Activity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->a:Ljava/lang/String;

    const-string/jumbo v1, "toDaily_info"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    new-instance v1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/dailyreport/NewPersonInfoActivity;

    invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v0, "useid"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->d:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    const/16 v2, 0x1012

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v7, v6}, Landroid/app/Activity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_3
    new-instance v1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/dailyreport/DetailH5Activity;

    invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v0, "comment_id"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->d:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "title"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->c:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "url"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->a:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "position"

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->e:I

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v1, v8}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    instance-of v0, v0, Landroid/app/Activity;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/br;->b:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v7, v6}, Landroid/app/Activity;->overridePendingTransition(II)V

    goto/16 :goto_0
.end method

.method public updateDrawState(Landroid/text/TextPaint;)V
    .locals 1

    iget v0, p1, Landroid/text/TextPaint;->linkColor:I

    invoke-virtual {p1, v0}, Landroid/text/TextPaint;->setColor(I)V

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/text/TextPaint;->setUnderlineText(Z)V

    return-void
.end method
